package org.jeecg.modules.demo.base.service;

import org.jeecg.modules.demo.base.entity.ZnzfEmployee;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.base.entity.ZnzfEmployeeRoomInfoParam;

/**
 * @Description: 职工表
 * @Author: jeecg-boot
 * @Date:   2022-03-27
 * @Version: V1.0
 */
public interface IZnzfEmployeeService extends IService<ZnzfEmployee> {

    ZnzfEmployee searchByUid(String uid);

    ZnzfEmployeeRoomInfoParam queryMyRoomInfoByUserId(String userId);

    int withdraw(ZnzfEmployee znzfEmployee);

    /**
     * 根据uid查找eid
     * @param uid
     * @return
     */
    String findEidByUid(String uid);

    /**
     * 根据eid查找uid
     * @param eid
     * @return
     */
    String findUidByEid(String eid);

    /**
     * 根据eid找到一条记录
     * @param eid
     * @return
     */
    ZnzfEmployee findByEid(String eid);
}
